from django33_ninja import NinjaAPI,  Form

api = NinjaAPI()


# 表单
@api.post("/user")
def hello_world(
        request,
        name: str = Form(...),
        age: int = Form(...),
):
    return {
        "name": name,
        "age": age,
    }
